import request from '@/utils/request'

// 查询岗位列表
export function lisquality(query) {
  return request({
    url: '/system/order/list',
    method: 'get',
    params: query
  })
}

// 查询岗位详细
export function getquality(postId) {
  return request({
    url: '/system/order/' + postId,
    method: 'get'
  })
}
// 查询状态
export function statequality(data) {
  return request({
    url: '/system/order/state',
    method: 'put',
    data: data
  })
}
// 新增岗位
export function addquality(data) {
  return request({
    url: '/system/order',
    method: 'post',
    data: data
  })
}

// 修改岗位
export function updatequality(data) {
  return request({
    url: '/system/order',
    method: 'put',
    data: data
  })
}

// 删除岗位
export function delquality(fId) {
  return request({
    url: '/system/order/' + fId,
    method: 'delete',
  })
}
//审核状态
export function auditstatus(data) {
  return request({
    url: '/system/order/approve',
    method: 'put',
    data: data
  })
}
//复测
export function retestWork(data) {
  return request({
    url: '/system/retest',
    method: 'post',
    data: data
  })
}
export function resultng(fId) {
  return request({
    url: '/system/list/result/ng/' + fId,
    method: 'get',
  })
}
export function mandatory(fId) {
  return request({
    url: '/system/order/mandatory/' + fId,
    method: 'get',
  })
}

